package com.baidu.bridge.conf;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "bridge") // 绑定 bridge 顶级节点
@Data
public class BridgeConfig {

    // bridge.ab 配置
    private Ab ab;

    // bridge.idass 配置
    private Idass idass;

    // mb  配置
    private Mb mb;


    //  竹云
    private  ZY zy;


    // ====================== 嵌套配置类 ======================
    @Data
    public static class Ab {
        private String url;
        private String token;
    }

    @Data
    public static class Idass {
        private String a;
        private String b;

    }
    @Data
    public static class Mb {
        private String url;
        private String token;
    }


    @Data
    public static class ZY {
        private String url;
        private String token;
    }
}